<template>
  <el-button
    :class="{ button_update: update }"
    :type="type"
    :size="size"
    :disabled="disabled"
    v-bind="attributes"
  >
    {{ title }}
  </el-button>
</template>

<script setup lang="ts">
  defineProps({
    title: {
      type: String,
      default: '',
    },
    // 按钮样式
    type: {
      type: String,
      default: '',
    },
    // 按钮大小
    size: {
      type: String,
      default: 'small',
    },
    // 属性
    attributes: {
      type: Object,
      default: {},
    } as any,
    // 更新样式
    update: {
      type: Boolean,
      default: false,
    },
    // 禁用
    disabled: {
      type: Boolean,
      default: false,
    },
  })
</script>

<style scoped></style>
